package org.dtrevien.metamodel.graphviz.stmt.impl;

import java.util.ArrayList;
import java.util.List;

import org.dtrevien.metamodel.graphviz.AttrList;
import org.dtrevien.metamodel.graphviz.stmt.Stmt;
import org.dtrevien.metamodel.graphviz.stmt.types.AttributType;
import org.dtrevien.metamodel.graphviz.visitor.Visitor;

public class AttributStmt extends Stmt {

	protected AttributType type;
	protected List<AttrList> attrLists;
	
	public AttributStmt(AttributType type, List<AttrList> attrLists) {
		super();
		this.type = type;
		this.attrLists = attrLists;
	}
	
	public AttributStmt() {
		this.attrLists = new ArrayList<AttrList>();
	}

	public AttributType getType() {
		return this.type;
	}

	public void setType(AttributType type) {
		this.type = type;
	}

	public List<AttrList> getAttrLists() {
		return this.attrLists;
	}

	public void setAttrLists(List<AttrList> attrLists) {
		this.attrLists = attrLists;
	}
	
	public void accept(Visitor v) {
		v.visitAttributeStmt(this);
	}
	
}
